
from abc import ABC, abstractmethod


class ADecoratorSwitch(ABC):

    # 模式数据
    aModelData = None

    BLogin = None

    def __init__(self, aModelData, BLogin):
        self.aModelData = aModelData
        self.BLogin = BLogin

    """
    切换模式,大小切换,单双切换,大小尾数切换等
    """
    @abstractmethod
    def switchModel(self):
        pass

    """
        计算索引 
    """
    @abstractmethod
    def calculateIndex(self):
        pass